<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $table = 'category';

    protected $fillable = [
        'name',             #名称
        'icon',             #)
        'parent_id',        #父级id
        'url',              #url地址
        'remark',           #备注
        'is_show',          #0下架
        'sort',             #排序
    ];

    protected $casts = [
        'is_show' => 'boolean',
    ];
}
